<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medrecord/medrecordHomePageManageOfCureInfo" style="width: 100%"
	method="post">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="pregnancyBirthRecordCount" value="0"/>
	<table width="100%" cellspacing="0" border="0" cellpadding="0">
		<tbody>
			<tr>
				<td colspan="9" style="border:none;">
					<div style="float:right">
						<input type="button" id="del_obstetricalRecord"
							onclick="delObstetricalRecord()" value="删除" class="btn">
						<input type="button" id="add_obstetricalRecord"
							onclick="addObstetricalRecord()" value="新增" class="btn">
						<input type="submit" value="保存" class="btn"> &nbsp;
					</div></td>
			</tr>
		</tbody>
	</table>
	<div class="bg_danlanColor clearfix" style="color:#333">
		<ul class="bg_danlanColor margin0 clearfix" id="obstetricalRecord_li">
			<li class="selected" data-index="0">记录1</li>

		</ul>
	</div>
	<div class="content" id="obstetricalRecord_content">
		<c:forEach var="obestetricalRecord"
			items="${obstetricalRecordInfo.obstetricalRecords }"
			varStatus="s">
			<div class="layout" id="obestetricalRecord0">
				<table width="100%" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="left" class="tdLabel_7">孕周</td>
							<td align="left"><input type="text"
								name="obstetricalRecords[0].gestationalWeeks"
								style="width:150px"
								value="${obestetricalRecord.gestationalWeeks}"
								class="input_box"></td>
							<td align="left" class="tdLabel_7">胎位</td>
							<td align="left"><select style="width:95%"
								name="obstetricalRecords[${s.index }].fetusPositionId">
									<option value="">=请选择=</option>
									<c:forEach var="fetusPosition"
										items="${basicInfos['fetusPositionList']}">
										<c:choose>
											<c:when
												test="${fetusPosition.id==obestetricalRecord.fetusPositionId}">
												<option value="${fetusPosition.id}" selected="selected">${fetusPosition.name}</option>
											</c:when>
											<c:otherwise>
												<option value="${fetusPosition.id}">${fetusPosition.name}</option>
											</c:otherwise>
										</c:choose>

									</c:forEach>
							</select> <input type="hidden"
								name="obstetricalRecords[${s.index }].fetusPositionName"
								value="${obestetricalRecord.fetusPositionName }" /></td>
							<td align="left" class="tdLabel_7">分娩方式</td>
							<td align="left"><select
								name="obstetricalRecords[${s.index }].childBirthId">
									<option value="">=请选择=</option>
									<c:forEach var="childBearing"
										items="${basicInfos['childBearList']}">
										<c:choose>
											<c:when
												test="${childBearing.id==obestetricalRecord.childBirthId}">
												<option value="${childBearing.id}" selected="selected">${childBearing.name}</option>
											</c:when>
											<c:otherwise>
												<option value="${childBearing.id}">${childBearing.name}</option>
											</c:otherwise>
										</c:choose>

									</c:forEach>
							</select> <input type="hidden"
								name="obstetricalRecords[${s.index }].childBirthName"
								value="${obestetricalRecord.childBirthName }" /></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">性别</td>
							<td align="left"><select
								name="obstetricalRecords[${s.index }].sexId">
									<option value="">=请选择=</option>
									<c:forEach var="sex" items="${basicInfos['sexes']}">
										<c:choose>
											<c:when test="${sex.id==obestetricalRecord.sexId}">
												<option value="${sex.id}" selected="selected">${sex.name}</option>
											</c:when>
											<c:otherwise>
												<option value="${sex.id}">${sex.name}</option>
											</c:otherwise>
										</c:choose>

									</c:forEach>
							</select> <input type="hidden"
								name="obstetricalRecords[${s.index }].sexName"
								value="${obestetricalRecord.sexName }" /></td>
							<td align="left" class="tdLabel_7">新生儿AGP评分</td>
							<td align="left" colspan="3"><input type="text"
								name="obstetricalRecords[${s.index }].neonateAgpScore"
								style="width: 150px"
								value="${obestetricalRecord.neonateAgpScore}"
								class="input_box"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7" width="14%">新生儿出生时间</td>
							<td align="left" width="18%"><input type="text"
								name="obstetricalRecords[${s.index }].neonateBornDate"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
								value="<fmt:formatDate value="${obestetricalRecord.neonateBornDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
								class="input_box" style="width: 150px"></td>
							<td align="left" class="tdLabel_7" width="14%">新生儿出生体重</td>
							<td align="left" width="18%"><input type="text"
								name="obstetricalRecords[${s.index }].neonateBornWeight"
								value="${obestetricalRecord.neonateBornWeight}"
								class="input_box" style="width: 150px">g</td>
							<td align="left" class="tdLabel_7" width="14%">新生儿出生身长</td>
							<td align="left" width="18%"><input type="text"
								name="obstetricalRecords[${s.index }].neonateBornHeight"
								value="${obestetricalRecord.neonateBornHeight}"
								class="input_box" style="width: 120px">cm</td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">新生儿产伤</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].neonateBirthInjury"
								<c:if test="${true==obestetricalRecord.neonateBirthInjury}">checked="checked"</c:if>
								value="true">是&nbsp;&nbsp; <input type="radio"
								class="radio_cl"
								name="obstetricalRecords[${s.index }].neonateBirthInjury"
								<c:if test="${false==obestetricalRecord.neonateBirthInjury}">checked="checked"</c:if>
								value="false">否</td>
							<td align="left" width="" class="tdLabel_7">新生儿死亡时间</td>
							<td align="left" colspan="3"><input type="text"
								name="obstetricalRecords[${s.index }].neonateDeathDate"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
								value="<fmt:formatDate value="${obestetricalRecord.neonateDeathDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
								class="input_box" style="width: 150px">
							</td>
						</tr>
						<tr>
							<td align="left" width="" class="tdLabel_7">听力筛查</td>
							<td><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hearingScreening"
								value="true"
								<c:if test="${true==obestetricalRecord.hearingScreening}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hearingScreening"
								value="false"
								<c:if test="${false==obestetricalRecord.hearingScreening}">checked="checked"</c:if>>否
							</td>
							<td align="left" width="" class="tdLabel_7">甲状腺功能低下筛查</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hypothyroidism"
								value="true"
								<c:if test="${true==obestetricalRecord.hypothyroidism}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hypothyroidism"
								value="false"
								<c:if test="${false==obestetricalRecord.hypothyroidism}">checked="checked"</c:if>>否
							</td>
							<td align="left" width="" class="tdLabel_7">苯丙酮尿酸检查</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].phenylketonuria"
								value="true"
								<c:if test="${true==obestetricalRecord.phenylketonuria}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].phenylketonuria"
								value="false"
								<c:if test="${false==obestetricalRecord.phenylketonuria}">checked="checked"</c:if>>否
							</td>
						</tr>
						<tr>
							<td align="left" width="" class="tdLabel_7">唐氏综合症筛查</td>
							<td><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].downSyndromeTest"
								value="true"
								<c:if test="${true==obestetricalRecord.downSyndromeTest}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].downSyndromeTest"
								value="false"
								<c:if test="${false==obestetricalRecord.downSyndromeTest}">checked="checked"</c:if>>否
							</td>
							<td align="left" class="tdLabel_7">卡介苗预防接种</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].bcgVaccination"
								value="true"
								<c:if test="${true==obestetricalRecord.bcgVaccination}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].bcgVaccination"
								value="false"
								<c:if test="${false==obestetricalRecord.bcgVaccination}">checked="checked"</c:if>>否
							</td>
							<td align="left" class="tdLabel_7">乙肝疫苗预防接种</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hepatitisBVaccine"
								value="true"
								<c:if test="${true==obestetricalRecord.hepatitisBVaccine}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hepatitisBVaccine"
								value="false"
								<c:if test="${false==obestetricalRecord.hepatitisBVaccine}">checked="checked"</c:if>>否
							</td>
						</tr>
						<tr>
							<td align="left" width="" class="tdLabel_7">视网膜筛查</td>
							<td><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].retinalScreening"
								value="true"
								<c:if test="${true==obestetricalRecord.retinalScreening}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].retinalScreening"
								value="false"
								<c:if test="${false==obestetricalRecord.retinalScreening}">checked="checked"</c:if>>否
							</td>
							<td align="left" width="" class="tdLabel_7">氢孕酮检测</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hydrogenProgesterone"
								value="true"
								<c:if test="${true==obestetricalRecord.hydrogenProgesterone}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].hydrogenProgesterone"
								value="false"
								<c:if test="${false==obestetricalRecord.hydrogenProgesterone}">checked="checked"</c:if>>否
							</td>
							<td align="left" width="" class="tdLabel_7">葡萄糖磷酸</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].glucosePhosphate"
								value="true"
								<c:if test="${true==obestetricalRecord.glucosePhosphate}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].glucosePhosphate"
								value="false"
								<c:if test="${false==obestetricalRecord.glucosePhosphate}">checked="checked"</c:if>>否
							</td>
						</tr>
						<tr>
							<td align="left" width="" class="tdLabel_7">脱氢酶检查</td>
							<td><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].dehydrogenaseAssay"
								value="true"
								<c:if test="${true==obestetricalRecord.dehydrogenaseAssay}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].dehydrogenaseAssay"
								value="false"
								<c:if test="${false==obestetricalRecord.dehydrogenaseAssay}">checked="checked"</c:if>>否
							</td>
							<td align="left" width="" class="tdLabel_7">串联质谱检测</td>
							<td align="left"><input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].tandemMsTest"
								value="true"
								<c:if test="${true==obestetricalRecord.tandemMsTest}">checked="checked"</c:if>>是&nbsp;&nbsp;
								<input type="radio" class="radio_cl"
								name="obstetricalRecords[${s.index }].tandemMsTest"
								value="false"
								<c:if test="${false==obestetricalRecord.tandemMsTest}">checked="checked"</c:if>>否
							</td>
							<td align="left" class="tdLabel_7">产后出血</td>
							<td align="left"><input type="text"
								name="obstetricalRecords[${s.index }].flooding"
								value="${obestetricalRecord.flooding}" class="input_box"
								style="width:150px"></td>

						</tr>

						<tr>
							<td align="left" class="tdLabel_7">新生儿疾病-1</td>
							<td align="left" colspan="5"><input type="text"
								class="input_box" style="width:350px"
								id="neonateDiseaseFormControl-${s.index}1"
								<c:if test='${obestetricalRecord.neonateDiseaseCode1 !=null and obestetricalRecord.neonateDiseaseCode1!=""}'>value="${obestetricalRecord.neonateDiseaseCode1}-${obestetricalRecord.neonateDiseaseName1}"</c:if> />
								<div></div>
								<div id="search_suggest${s.index }1"></div> <input
								type="hidden" id="neonateDiseaseCode${s.index }1"
								name="obstetricalRecords[${s.index }].neonateDiseaseCode1"
								value="${ obestetricalRecord.neonateDiseaseCode1}">
								<input type="hidden" id="neonateDiseaseName${s.index }1"
								name="obstetricalRecords[${s.index }].neonateDiseaseName1"
								value="${obestetricalRecord.neonateDiseaseName1}"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">新生儿疾病-2</td>
							<td align="left" colspan="5"><input type="text"
								class="input_box" style="width:350px"
								id="neonateDiseaseFormControl-${s.index}2"
								<c:if test='${obestetricalRecord.neonateDiseaseCode2 !=null and obestetricalRecord.neonateDiseaseCode2!=""}'>value="${obestetricalRecord.neonateDiseaseCode2}-${obestetricalRecord.neonateDiseaseName2}"</c:if> />
								<div></div>
								<div id="search_suggest${s.index }2"></div> <input
								type="hidden" id="neonateDiseaseCode${s.index }2"
								name="obstetricalRecords[${s.index }].neonateDiseaseCode2"
								value="${ obestetricalRecord.neonateDiseaseCode2}">
								<input type="hidden" id="neonateDiseaseName${s.index }2"
								name="obstetricalRecords[${s.index }].neonateDiseaseName2"
								value="${obestetricalRecord.neonateDiseaseName2}"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">新生儿疾病-3</td>
							<td align="left" colspan="5"><input type="text"
								class="input_box" style="width:350px"
								id="neonateDiseaseFormControl-${s.index}3"
								<c:if test='${obestetricalRecord.neonateDiseaseCode3 !=null and obestetricalRecord.neonateDiseaseCode3!=""}'>value="${obestetricalRecord.neonateDiseaseCode3}-${obestetricalRecord.neonateDiseaseName3}"</c:if> />
								<div></div>
								<div id="search_suggest${s.index }3"></div> <input
								type="hidden" id="neonateDiseaseCode${s.index }3"
								name="obstetricalRecords[${s.index }].neonateDiseaseCode3"
								value="${ obestetricalRecord.neonateDiseaseCode3}">
								<input type="hidden" id="neonateDiseaseName${s.index }3"
								name="obstetricalRecords[${s.index }].neonateDiseaseName3"
								value="${obestetricalRecord.neonateDiseaseName3}"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">新生儿疾病-4</td>
							<td align="left" colspan="5"><input type="text"
								class="input_box" style="width:350px"
								id="neonateDiseaseFormControl-${s.index}4"
								<c:if test='${obestetricalRecord.neonateDiseaseCode4 !=null and obestetricalRecord.neonateDiseaseCode4!=""}'>value="${obestetricalRecord.neonateDiseaseCode4}-${obestetricalRecord.neonateDiseaseName4}"</c:if> />
								<div></div>
								<div id="search_suggest${s.index }4"></div> <input
								type="hidden" id="neonateDiseaseCode${s.index }4"
								name="obstetricalRecords[${s.index }].neonateDiseaseCode4"
								value="${ obestetricalRecord.neonateDiseaseCode4}">
								<input type="hidden" id="neonateDiseaseName${s.index }4"
								name="obstetricalRecords[${s.index }].neonateDiseaseName4"
								value="${obestetricalRecord.neonateDiseaseName4}"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">新生儿疾病-5</td>
							<td align="left" colspan="5"><input type="text"
								class="input_box" style="width:350px"
								id="neonateDiseaseFormControl-${s.index}5"
								<c:if test='${obestetricalRecord.neonateDiseaseCode5 !=null and obestetricalRecord.neonateDiseaseCode5!=""}'>value="${obestetricalRecord.neonateDiseaseCode5}-${obestetricalRecord.neonateDiseaseName5}"</c:if> />
								<div></div>
								<div id="search_suggest${s.index }5"></div> <input
								type="hidden" id="neonateDiseaseCode${s.index }5"
								name="obstetricalRecords[${s.index }].neonateDiseaseCode5"
								value="${ obestetricalRecord.neonateDiseaseCode5}">
								<input type="hidden" id="neonateDiseaseName${s.index }5"
								name="obstetricalRecords[${s.index }].neonateDiseaseName5"
								value="${obestetricalRecord.neonateDiseaseName5}"></td>
						</tr>
						<tr>
							<td align="left" class="tdLabel_7">接生者</td>
							<td align="left" colspan="5"><input type="text"
								name="obstetricalRecords[${s.index }].midwife"
								value="${obestetricalRecord.midwife}" class="input_box"
								style="width:150px">
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</c:forEach>

	</div>
</form>
<script>
	$(function(){
		
	})
</script>